export function config(value, attrName) {
  if (!value) return "";
  let config = JSON.parse(storage.getItem("config"));
  let _attr = config[attrName];
  let _parmaAttr = "key";
  let _other = "value";
  if (!_attr) {
    throw new Error("请输入正确的config下属性值");
  }
  for (let key of _attr) {
    if (key[_parmaAttr] == value) {
      return key[_other];
    }
  }
}
